package com.xmxsuperstar.app.client.twitter;

import java.util.HashMap;
import java.util.Map;

public class TwitterFriendshipClient extends TwitterClient {

	public String createByUserId(String userId) {

		String urlString = "http://api.twitter.com/1/friendships/create.json";

		Map<String, String> params = new HashMap<String, String>();
		params.put("user_id", userId);

		return this.post(urlString, params);

	}

	public String createByScreenName(String screenName) {

		String urlString = "http://api.twitter.com/1/friendships/create.json";

		Map<String, String> params = new HashMap<String, String>();
		params.put("screen_name", screenName);

		return this.post(urlString, params);

	}

	public static void main(String[] args) {
		TwitterFriendshipClient c = new TwitterFriendshipClient();
		System.out.println(c.createByScreenName("ddyyyydd"));
	}

}
